package com.xkcyy.one.ai.llm.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * 工具参数集合定义模型
 * 示例如下：
 * {
 *     "type": "object",
 *     "properties": {
 *         "location": {
 *             "type": "string",
 *             "description": "城市，如：北京"
 *         }
 *     },
 *     "required": ["location"]
 * }
 *
 *
 * @author yuand
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ToolDefinitionParameters {
    /**
     * 必需参数列表
     */
    private List<String> required;

    /**
     * 参数属性映射
     */
    private Map<String, ToolDefinitionParameter> properties;

    /**
     * 类型
     */
    private String type = "object";
}